import request from "@/utils/request";

// 报表1:获取总人数
export const getTotalStudentCount = (data) =>
  request.post("/biz/statistics/totalStudentCount", data);

// 报表1:统计在校、在企、毕业人数
export const getStudentStatusCount = (data) =>
  request.post("/biz/statistics/studentStatusCount", data);

// 报表1:培养阶段统计
export const getTrainTypeStatistics = (data) =>
  request.post("/biz/statistics/trainTypeStatistics", data);

// 报表2:培养高校学生总计
export const getTotalCollegeCount = (data) =>
  request.post("/biz/statistics/totalCollegeCount", data);
export const getCollegeStudentCount = (data) =>
  request.post("/biz/statistics/collegeStudentCount", data);

// 报表3:培养单位学生总计
export const getTrainDeptCount = (data) =>
  request.post("/biz/statistics/trainDeptCount", data);
export const getTrainDeptStudentCount = (data) =>
  request.post("/biz/statistics/trainDeptStudentCount", data);
// 报表3:培养专业学生总计
export const getTrainFieldCount = (data) =>
  request.post("/biz/statistics/trainFieldCount", data);
export const getTrainFieldStudentCount = (data) =>
  request.post("/biz/statistics/trainFieldStudentCount", data);

// 报表4:培养高校学生总计
export const getTrainYearUniversityStatistics = (data) =>
  request.post("/biz/statistics/trainYearUniversityStatistics", data);

// 报表5:培养单位-培养学校统计
export const getTrainDeptUniversityStatistics = (data) =>
  request.post("/biz/statistics/trainDeptUniversityStatistics", data);

// 报表6:花名册
export const getUserDetailStatistics = (data) =>
  request.post("/biz/statistics/userDetailStatistics", data);
export const exportUserDetailStatistics = (data) =>
  request.post("/biz/statistics/exportUserDetailStatistics", data, { responseType: "blob" });
